<extend name="Public/common" />
<block name="body">
	<div class="order-form-c bg-wbp bdb-no">
		<div class="frame-style bdb-no" id="bdb">
			<span class="col-b font23">未完成</span><span class="fr col-g font23">已完成</span>
		</div>
		<div class="move-line"></div>
	</div>
	<div class="order-form clearfix">
		<!--未完成订单-->
		<div class="order-s">
			<empty name="unfinishOrderList">
			<div class="no-order-img" style="display: block">
				<img src="__IMG__/nonedan.png" />
			</div>
			<else />
			<volist name="unfinishOrderList" id="vo">
			<div class="bought-goods bg-wbp">
				<div class="buy-goods">
					<img src="{:thumb($vo['goods']['image'], 680, 90, 3)}" />
					<p class="font23">
						{$vo['goods']['goods_name']} <br />
						<img src="__IMG__/b.png" />预计<span class="font23">{:date('m月d日 H:i', $vo['order']['start_deliver_time'])} - {:date('H:i', $vo['order']['end_deliver_time'])}</span>送达
					</p>
				</div>
				<div class=" frame-style bdt buy-goods-add">
					<img src="__IMG__/iconfan.png" /><span class="col-b font23">{$store[$vo['order']['store_id']]}</span>
				</div>
				<div class=" frame-style bdb-no buy-goods-price">
					<span class="fr col-r font23 ">{$vo['order']['order_amount']}元</span>
				</div>
			</div>
		    </volist>
			</empty>
		</div>

		<!--完成订单-->
		<div class="order-s dsnone">
			<empty name="finishOrderList">
				<div class="no-order-img" style="display: block">
					<img src="__IMG__/nonedan.png" />
				</div>
			<else />
			<volist name="finishOrderList" id="vo">
			<div class="bought-goods bg-wbp">
				<div class="buy-goods ">
					<img src="{:thumb($vo['goods']['image'], 680, 90, 3)}" />
					<p class="font23 ">
						{$vo['goods']['goods_name']}
					</p>
				</div>
				<div class=" frame-style bdt buy-goods-add">
					<img src="__IMG__/iconfan.png" /><span class="col-b font23">{$store[$vo['order']['store_id']]}</span>
				</div>
				<div class=" frame-style bdb-no buy-goods-price ">
					<span class="fr col-r font23 ">{$vo['order']['order_amount']}元</span>
				</div>
			</div>
			</volist>
			</empty>
		</div>
		<div class="order-form-footer-txt col-g">到底了哦~</div>
	</div>
	<div class="order-form-footer-btn clots">
		<img src="__IMG__/buytimebtn.png" />
		<div><span class="fl col-y">遇到问题&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;联系我们</span> <img src="__IMG__/youjian.png"/></div>
	</div>
</block>
<block name="js">
<script type="text/javascript">
	//未完成与完成
	$('#bdb span').each(function(i,e){
		$(e).click(function(){
			if(i==0){
				$(".move-line").css({ left:'2.7rem' });
			}else{
				$(".move-line").css({ left:'auto',right:"2.65rem" });
			}
			$('.order-s').hide();
			$('.order-s').eq(i).show();
		});
	});
</script>
</block>